package com.kefu.chat.model;

import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author hxh
 * @date 2022/10/26
 */
@Data
@TableName(value = "chat_videos")
@ApiModel(description = "")
public class ChatVideos implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "conversation_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String conversationId;

    @TableField(value = "tenant_id")
    @ApiModelProperty(value = "")
    private String tenantId;

    @TableField(value = "agent_id")
    @ApiModelProperty(value = "坐席id")
    private String agentId;

    @TableField(value = "agent_name")
    @ApiModelProperty(value = "坐席名称")
    private String agentName;

    @TableField(value = "video_type")
    @ApiModelProperty(value = "呼叫类型1:语音通话，2:视频通话")
    private Integer videoType;

    @TableField(value = "conversation_type")
    @ApiModelProperty(value = "通话类型0:呼出，1:呼入")
    private Integer conversationType;

    @TableField(value = "video_time_status")
    @ApiModelProperty(value = "接听状态，0 未接听,1 已接听")
    private Integer videoTimeStatus;

    @TableField(value = "video_time")
    @ApiModelProperty(value = "通话时长")
    private Double videoTime;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @TableField(value = "update_time")
    @ApiModelProperty(value = "修改时间")
    private Long updateTime;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private String userId;

    @TableField(value = "through_time")
    @ApiModelProperty(value = "音视频接通时间")
    private Long throughTime;

    @TableField(value = "tang_time")
    @ApiModelProperty(value = "音视频挂断时间")
    private Long tangTime;

    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户姓名")
    private String userName;


    @TableField(value = "flow")
    @ApiModelProperty(value = "消耗流量,单位mb")
    private Double flow;


    @TableField(exist = false)
    @ApiModelProperty(value = "音视频次数")
    private Integer videoCount;

    @TableField(exist = false)
    @ApiModelProperty(value = "音视频通话总时间")
    private Integer videoTimes;

    @TableField(exist = false)
    @ApiModelProperty(value = "音频通话次数")
    private Integer audioType;

    @TableField(exist = false)
    @ApiModelProperty(value = "视频通话次数")
    private Integer videoTypes;

    @TableField(exist = false)
    @ApiModelProperty(value = "呼出次数")
    private Integer outType;

    @TableField(exist = false)
    @ApiModelProperty(value = "呼入次数")
    private Integer inType;

    @TableField(exist = false)
    @ApiModelProperty(value = "音视频通话平均时间")
    private Double videoTimeAvg;

    @TableField(exist = false)
    @ApiModelProperty(value = "流量总计")
    private Double flowSum;

    @TableField(exist = false)
    @ApiModelProperty(value = "未接听次数")
    private Integer noAnswerCount;

    @TableField(exist = false)
    @ApiModelProperty(value = "已接听次数")
    private Integer answerCount;


    @TableField(exist = false)
    @ApiModelProperty(value = "音视频通话接听率")
    private String connectionRate;

    @TableField(exist = false)
    @ApiModelProperty(value = "各个时间段")
    private String dates;



}